package com.hbx.platform.org.service.impl;

import com.hbx.platform.base.service.impl.BaseServiceImpl;
import com.hbx.platform.org.domain.Employee;
import com.hbx.platform.org.mapper.EmployeeMapper;
import com.hbx.platform.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: hbx
 * @date: 2024/03/30
 **/
@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;


    @Override
    public void save(Employee employee) {
        employee.setHeadImage("https://q7.itc.cn/q_70/images03/20240326/06af1584099a4f4496b69a1f0057f86a.jpeg");
        employeeMapper.save(employee);
    }

    @Override
    public Employee queryByName(String username) {
        return employeeMapper.queryByName(username);
    }
}
